import Home from '../views/Homes'
import About from '../views/About'
import Login from '../views/Login'

// 二级路由
import One from '../views/home/One'
import Two from '../views/home/Two'
import My from '../views/My'

// 三级路由
import Com from '../views/home/Com'

export default [
    {
        from: "/",
        to: "/home"
    },
    {
        path: "/home",
        view: Home,
        children: [
            {
                from: "/home",
                to: "/home/one"
            },
            {
                path: "/home/one",
                view: One,
                children: [
                    {
                        path: "/home/one/com",
                        view: Com
                    }
                ]
            },
            {
                path: "/home/two",
                view: Two,
                auth: true
            },
            {
                path: "/home/my",
                view: My,
                // auth: true
            }
        ]
    },
    {
        path: "/about",
        view: About
    },
    {
        path: "/login",
        view: Login
    }
]